<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'text.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

</head>

<body bgcolor="#D9DFBB">
	<table width=400 border=1>
		<tr>
			<th>课程号</th>
			<th>课程名</th>
			<th>开学学期</th>
			<th>学时</th>
			<th>学分</th>
			<th>操作</th> </tr>
		<s:iterator value="allKcJsp_kcs" id="kc">
			<tr>
				<td><s:property value="#kc.kch" /></td>
				<td><s:property value="#kc.kcm" /></td>
				<td><s:property value="#kc.kxxq" /></td>
				<td><s:property value="#kc.xs" /></td>
				<td><s:property value="#kc.xf" /></td>
				<td>
					<a href="selectKc.action?selectActionKcb.kch=<s:property value='#kc.kch'/>"
					onclick=" if(confirm('您确定选修该课程吗??'))
					 return true;
					else 
					 return false;">选修</a>
				</td>
			</tr>	
		</s:iterator>
	</table>
</body>
</html>
